<%@ page pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/includes/directives/page.jspf"%>
<%@ include file="/WEB-INF/views/includes/directives/taglib.jspf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/WEB-INF/views/includes/include_js_css.jspf"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><fmt:message key="settings_jsp.title" /></title>
</head>
<body>
	<div id="main_container">
		<%@ include file="/WEB-INF/views/includes/header.jspf"%>
		<div id="content">
			<div id="form_container">
				<form action="main?command=update_settings" method="post">
					<input type="hidden" name="user_id" value="${userSettingsBean.id}" />

					<div class="form_field">
						<div class="form_label">
							<fmt:message key="settings_jsp.label.locale" />
						</div>
						<div class="from_input">
							<select name="locale">
								<c:forEach var="locOption" items="${availableLocals}">
									<option value="${locOption}"
										${locOption == preferableLocale ? "SELECTED" : "" }>${locOption}</option>
								</c:forEach>
							</select>
						</div>
					</div>

					<div class="form_field">
						<div class="form_label">
							<fmt:message key="settings_jsp.label.first_name" />
						</div>
						<div class="from_input">
							<input type="text" name="user_firstName" maxlength="20"
								value="${userSettingsBean.firstName}" />
						</div>
					</div>

					<div class="form_field">
						<div class="form_label">
							<fmt:message key="settings_jsp.label.last_name" />
						</div>
						<div class="from_input">
							<input type="text" name="user_lastName" maxlength="20"
								value="${userSettingsBean.lastName}" />
						</div>
					</div>

					<div class="form_field">
						<div class="form_label">
							<fmt:message key="settings_jsp.label.phone" />
						</div>
						<div class="from_input">
							<input type="text" name="user_phone" maxlength="20"
								value="${userSettingsBean.phone}" />
						</div>
					</div>

					<div class="form_field">
						<div class="from_input">
							<input value='<fmt:message key="settings_jsp.buton.submit"/>'
								type="submit">
						</div>
					</div>
				</form>
			</div>
		</div>
		<div id="free_space"></div>
	</div>
	<%@ include file="/WEB-INF/views/includes/footer.jspf"%>
</body>
</html>